<div class="dux-tools">

  <div class="bread-head">站点设置 <span class="small">设置网站常用功能</span> </div>

</div>

<div class="admin-main">

  <form action="__APP__/setting/save/time-time()" class="form-x dux-form form-auto" id="form" name="form" method="post">

    <div class="tab dux-tab">

      <div class="panel dux-box  active">

        <div class="panel-head">

          <div class="tab-head"> <strong>站点设置</strong>

            <ul class="tab-nav">

              <li class="active"><a href="#tab-1">基本信息</a> </li>

              <li><a href="#tab-2">公司信息</a> </li>

              <li><a href="#tab-3">询盘设置</a> </li>

              <li><a href="#tab-4">上传设置</a> </li>

              <li style="display:none;"><a href="#tab-5">其它设置</a> </li>

              <li><a href="#tab-6">模板设置</a> </li>

            </ul>

          </div>

        </div>

        <div class="tab-body">

          <div class="tab-panel active" id="tab-1">

            <div class="form-group">

              <div class="label">

                <label>网站名称</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="sitename" name="sitename" size="60" value="{$config_array.sitename}">

                <div class="input-note">站点标题请不要填写特殊字符</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label>站点关键词</label>

              </div>

              <div class="field">

                <textarea class="input" id="keywords" name="keywords" rows="3" cols="62" >{$config_array.keywords}</textarea>

                <div class="input-note">搜索引擎所收录的关键词</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label>站点描述</label>

              </div>

              <div class="field">

                <textarea class="input" id="description" name="description"  rows="3" cols="62">{$config_array.description}</textarea>

                <div class="input-note">网站描述信息</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label>站点网址</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="siteurl" name="siteurl" size="60" value="{$config_array.siteurl}">

                <div class="input-note">当前站点的网址</div>

              </div>

            </div>

          </div>

          <div class="tab-panel" id="tab-2">

            <div class="form-group">

              <div class="label">

                <label>公司名称</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="company_name" name="company_name" size="60" value="{$config_array.company_name}">

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label>电话</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="company_phone" name="company_phone" size="60" value="{$config_array.company_phone}">

              </div>

            </div>

            <div class="form-group" style="display:;">

              <div class="label">

                <label>传真</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="company_fax" name="company_fax" size="60" value="{$config_array.company_fax}">

              </div>

            </div>

            <div class="form-group" style="display:none;">

              <div class="label">

                <label>whatsapp</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="company_whatsapp" name="company_whatsapp" size="60" value="{$config_array.company_whatsapp}">

              </div>

            </div>

            <div class="form-group" style="display:none;">

              <div class="label">

                <label>联系人</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="company_contacter" name="company_contacter" size="60" value="{$config_array.company_contacter}">

              </div>

            </div>

            <div class="form-group" style="display:;">

              <div class="label">

                <label>skype</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="company_skype" name="company_skype" size="60" value="{$config_array.company_skype}">

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label>Email</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="company_email" name="company_email" size="60" value="{$config_array.company_email}">

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label>公司地址</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="company_address" name="company_address" size="60" value="{$config_array.company_address}">

              </div>

            </div>

            <div class="form-group" style="display:none;">

              <div class="label">

                <label>首页视频代码</label>

              </div>

              <div class="field">

                <textarea class="input" id="company_video" name="company_video"  rows="6" cols="62">{$config_array.company_video}</textarea>

                <div class="input-note"></div>

              </div>

            </div>

          </div>

          <div class="tab-panel" id="tab-3">

            <div class="form-group">

              <div class="label">

                <label>smtp地址</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="smtp" name="smtp" size="60" value="{$config_array.smtp}">

                <div class="input-note">发送询盘的邮箱smtp服务器地址</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label>发信邮箱</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="mail" name="mail" size="60" value="{$config_array.mail}">

                <div class="input-note">发送询盘的邮箱,如123456@qq.com</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label>邮箱密码</label>

              </div>

              <div class="field">

                <input type="password" class="input" id="mail_pass" name="mail_pass" size="60" value="{$config_array.mail_pass}">

                <div class="input-note">发件邮箱密码</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label>发件人称呼</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="mail_name" name="mail_name" size="60" value="{$config_array.mail_name}">

                <div class="input-note">发件人简称</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label>接收询盘邮箱</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="receive_mail" name="receive_mail" size="60" value="{$config_array.receive_mail}">

                <div class="input-note">多个邮箱请用英文,隔开</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label>测试邮件发送功能</label>

              </div>

              <div class="field"> <a class="button bg-blue button-small" href="__APP__/setting/test_mail" target="_blank" type="submit">发送测试邮件</a>

                <div class="input-note"></div>

              </div>

            </div>

          </div>

          <div class="tab-panel" id="tab-4">

            <div class="form-group">

              <div class="label">

                <label>上传大小</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="ACCESSPRY_SIZE" name="ACCESSPRY_SIZE" size="60" datatype="n" value="{$config_array.ACCESSPRY_SIZE}">

                <div class="input-note">单位:M</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label>批量上传数</label>

              </div>

              <div class="field">

               <input type="text" class="input" id="ACCESSPRY_NUM" name="ACCESSPRY_NUM" size="60" datatype="n" value="{$config_array.ACCESSPRY_NUM}">

                <div class="input-note">每次批量上传最多可选的文件数</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label>允许上传类型</label>

              </div>

              <div class="field">

                <textarea class="input" id="ACCESSPRY_TYPE" name="ACCESSPRY_TYPE"  rows="6" cols="62">{$config_array.ACCESSPRY_TYPE}</textarea>

                <div class="input-note">用英文逗号分割</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">默认缩图方式</label>

              </div>

              <div class="field">

                <div class="button-group button-group-small radio">

                <?php if($config_array['WATERMARK_CUTOUT']){ ?>

                  <label class="button active">

                    <input name="WATERMARK_CUTOUT" value="true"   checked="checked" type="radio">

                    <span class="icon icon-check"></span> 裁剪</label>

                  <label class="button">

                    <input name="WATERMARK_CUTOUT" value="false" type="radio">

                    <span class="icon icon-times"></span> 按比例</label>

                <?php }else{?>

                  <label class="button">

                    <input name="WATERMARK_CUTOUT" value="true" type="radio">

                    <span class="icon icon-check"></span> 裁剪</label>

                  <label class="button active">

                    <input name="WATERMARK_CUTOUT" value="false" checked="checked" type="radio">

                    <span class="icon icon-times"></span> 按比例</label>

                <?php }?>    

                </div>

                <div class="input-note"></div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">默认缩图开关</label>

              </div>

              <div class="field">

                <div class="button-group button-group-small radio">

                <?php if($config_array['THUMBNAIL_SWIHCH']){ ?>

                  <label class="button active">

                    <input name="THUMBNAIL_SWIHCH" value="true"   checked="checked" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button">

                    <input name="THUMBNAIL_SWIHCH" value="false" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }else{?>

                  <label class="button">

                    <input name="THUMBNAIL_SWIHCH" value="true" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button active">

                    <input name="THUMBNAIL_SWIHCH" value="false" checked="checked" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }?>    

                </div>

                <div class="input-note">开关只针对上传时的缩图选项勾选</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">缩放宽度</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="THUMBNAIL_MAXWIDTH" name="THUMBNAIL_MAXWIDTH" size="60" datatype="n" value="{$config_array.THUMBNAIL_MAXWIDTH}">

                <div class="input-note">单位：像素</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">缩放高度</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="THUMBNAIL_MAXHIGHT" name="THUMBNAIL_MAXHIGHT" size="60" datatype="n" value="{$config_array.THUMBNAIL_MAXHIGHT}">

                <div class="input-note">单位：像素</div>

              </div>

            </div>

          </div>

          <div class="tab-panel" id="tab-5">

            <div class="form-group">

              <div class="label">

                <label for="sitename">错误信息输出</label>

              </div>

              <div class="field">

                <div class="button-group button-group-small radio">

                 <?php if($config_array['DEBUG']){ ?>

                  <label class="button active">

                    <input name="DEBUG" value="true"   checked="checked" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button">

                    <input name="DEBUG" value="false" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }else{?>

                  <label class="button">

                    <input name="DEBUG" value="true" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button active">

                    <input name="DEBUG" value="false" checked="checked" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }?>    

                </div>

                <div class="input-note">开启将会显示详细错误信息</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">DEBUG模式</label>

              </div>

              <div class="field">

                <div class="button-group button-group-small radio">

                 <?php if($config_array['ERROR_HANDLE']){ ?>

                  <label class="button active">

                    <input name="ERROR_HANDLE" value="true"   checked="checked" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button">

                    <input name="ERROR_HANDLE" value="false" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }else{?>

                  <label class="button">

                    <input name="ERROR_HANDLE" value="true" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button active">

                    <input name="ERROR_HANDLE" value="false" checked="checked" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }?>    

                </div>

                <div class="input-note">开启DEBUG模式将会显示严格的调试信息，非开发者请勿开启。</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">伪静态模式</label>

              </div>

              <div class="field">

                <div class="button-group button-group-small radio">

                 <?php if($config_array['URL_REWRITE_ON']){ ?>

                  <label class="button active">

                    <input name="URL_REWRITE_ON" value="true"   checked="checked" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button">

                    <input name="URL_REWRITE_ON" value="false" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }else{?>

                  <label class="button">

                    <input name="URL_REWRITE_ON" value="true" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button active">

                    <input name="URL_REWRITE_ON" value="false" checked="checked" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }?>    

                </div>

                <div class="input-note">开启伪静态请先设置相应的伪静态规则</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">智能生成静态</label>

              </div>

              <div class="field">

                <div class="button-group button-group-small radio">

                 <?php if($config_array['HTML_CACHE_ON']){ ?>

                  <label class="button active">

                    <input name="HTML_CACHE_ON" value="true"   checked="checked" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button">

                    <input name="HTML_CACHE_ON" value="false" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }else{?>

                  <label class="button">

                    <input name="HTML_CACHE_ON" value="true" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button active">

                    <input name="HTML_CACHE_ON" value="false" checked="checked" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }?>    

                </div>

                <div class="input-note">开启静态缓存后更改模板与设置请先清除缓存</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">首页更新时间</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="HTML_CACHE_RULE|index|*" name="HTML_CACHE_RULE|index|*" size="60" value="<?php echo $config_array['HTML_CACHE_RULE']['index']['*'] ?>">

                <div class="input-note">(单位：秒) 开启智能生成静态后有效</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">其他页更新时间</label>

              </div>

              <div class="field">

                <input name="HTML_CACHE_RULE|empty|*" type="text" class="input" value="<?php echo $config_array['HTML_CACHE_RULE']['empty']['*'] ?>" />

                <div class="input-note">(单位：秒) 开启智能生成静态后有效</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">搜索更新时间</label>

              </div>

              <div class="field">

                <input name="HTML_CACHE_RULE|search|*" type="text" class="input" value="<?php echo $config_array['HTML_CACHE_RULE']['search']['*'] ?>" />

                <div class="input-note">(单位：秒) 开启智能生成静态后有效</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">数据库缓存</label>

              </div>

              <div class="field">

                <div class="button-group button-group-small radio">

                 <?php if($config_array['DB_CACHE_ON']){ ?>

                  <label class="button active">

                    <input name="DB_CACHE_ON" value="true"   checked="checked" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button">

                    <input name="DB_CACHE_ON" value="false" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }else{?>

                  <label class="button">

                    <input name="DB_CACHE_ON" value="true" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button active">

                    <input name="DB_CACHE_ON" value="false" checked="checked" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }?>    

                </div>

                <div class="input-note">建议网站上线后开启</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">模板缓存</label>

              </div>

              <div class="field">

                <div class="button-group button-group-small radio">

                 <?php if($config_array['TPL_CACHE_ON']){ ?>

                  <label class="button active">

                    <input name="TPL_CACHE_ON" value="true"   checked="checked" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button">

                    <input name="TPL_CACHE_ON" value="false" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }else{?>

                  <label class="button">

                    <input name="TPL_CACHE_ON" value="true" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button active">

                    <input name="TPL_CACHE_ON" value="false" checked="checked" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }?>    

                </div>

                <div class="input-note">更换修改模板请先清除缓存</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">多国语言</label>

              </div>

              <div class="field">

                <div class="button-group button-group-small radio">

                 <?php if($config_array['LANG_OPEN']){ ?>

                  <label class="button active">

                    <input name="LANG_OPEN" value="true"   checked="checked" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button">

                    <input name="LANG_OPEN" value="false" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }else{?>

                  <label class="button">

                    <input name="LANG_OPEN" value="true" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button active">

                    <input name="LANG_OPEN" value="false" checked="checked" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }?>    

                </div>

                <div class="input-note">注意：开启多国语言后模板目录会有所变更，请自行修改。</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">默认语言</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="LANG_DEFAULT" name="LANG_DEFAULT" size="60" value="<?php echo $config_array['LANG_DEFAULT'] ?>">

                <div class="input-note">开启多语言后生效，填写语言标识</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">手机版</label>

              </div>

              <div class="field">

                <div class="button-group button-group-small radio">

                 <?php if($config_array['MOBILE_OPEN']){ ?>

                  <label class="button active">

                    <input name="MOBILE_OPEN" value="true"   checked="checked" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button">

                    <input name="MOBILE_OPEN" value="false" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }else{?>

                  <label class="button">

                    <input name="MOBILE_OPEN" value="true" type="radio">

                    <span class="icon icon-check"></span> 开启</label>

                  <label class="button active">

                    <input name="MOBILE_OPEN" value="false" checked="checked" type="radio">

                    <span class="icon icon-times"></span> 关闭</label>

                <?php }?>    

                </div>

                <div class="input-note">注意：开启手机版后请自行移动手机模板</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">绑定域名</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="MOBILE_DOMAIN" name="MOBILE_DOMAIN" size="60" value="<?php echo $config_array['MOBILE_DOMAIN'] ?>">

                <div class="input-note">开启手机版后生效，需绑定二级或者顶级域名，如：m.baiila.com</div>

              </div>

            </div>



          </div>

          <div class="tab-panel" id="tab-6">

            <div class="form-group">

              <div class="label">

                <label for="sitename">模板路径</label>

              </div>

              <div class="field">

                  <select name="TPL_TEMPLATE_PATH" class="input">

                  <!--foreach:{$themes_list $vo}-->

                    <option value="themes/{$vo}/" <?php if($vo==$config_array['TPL_TEMPLATE_PATH']){echo 'selected="selected"';} ?>>themes/{$vo}/</option>

                   <!--{/foreach}--> 

                  </select>

                <div class="input-note">针对themes目录下的文件夹</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">首页模板</label>

              </div>

              <div class="field">

              <input name="TPL_INDEX" type="text" class="input" size="60" id="TPL_INDEX" value="{$config_array.TPL_INDEX}" />

                

                <div class="input-note">定义首页访问的模板</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">公共模板</label>

              </div>

              <div class="field">

              <input name="TPL_COMMON" type="text" class="input" size="60" id="TPL_COMMON" value="{$config_array.TPL_COMMON}" /></td>

                <div class="input-note">公共模板用于tag、搜索等模板的外部模板</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">搜索模板</label>

              </div>

              <div class="field">

                  <input name="TPL_SEARCH" type="text" class="input" size="60" id="TPL_SEARCH" value="{$config_array.TPL_SEARCH}" />

                <div class="input-note">定义网站搜索的模板</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">TAG模板</label>

              </div>

              <div class="field">

                  <input name="TPL_TAGS" type="text" class="input" size="60" id="TPL_TAGS" value="{$config_array.TPL_TAGS}" />

                <div class="input-note">定义网站TAG内容列表的模板</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">TAG主页模板</label>

              </div>

              <div class="field">

                  <input name="TPL_TAGS_INDEX" type="text" class="input" size="60" id="TPL_TAGS_INDEX" value="{$config_array.TPL_TAGS_INDEX}" />

                <div class="input-note">定义网站TAG集合页的模板</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">搜索结果分页数</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="TPL_SEARCH_PAGE" name="TPL_SEARCH_PAGE" size="60" datatype="n" value="{$config_array.TPL_SEARCH_PAGE}">

                <div class="input-note">针对搜索结果的每页分页数</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">TAG内容分页数</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="TPL_TAGS_PAGE" name="TPL_TAGS_PAGE" size="60" datatype="n" value="{$config_array.TPL_TAGS_PAGE}">

                <div class="input-note">TAG内容列表每页显示数量</div>

              </div>

            </div>

            <div class="form-group">

              <div class="label">

                <label for="sitename">TAG主页分页数</label>

              </div>

              <div class="field">

                <input type="text" class="input" id="TPL_TAGS_INDEX_PAGE" name="TPL_TAGS_INDEX_PAGE" size="60" datatype="n" value="{$config_array.TPL_TAGS_INDEX_PAGE}">

                <div class="input-note">TAG集合页每页显示数量</div>

              </div>

            </div>

          </div>

        </div>

        <div class="panel-foot">

          <div class="form-button">

            <div id="tips"></div>

            <input type="hidden" name="WATERMARK_SWITCH" value="false" />

            <input type="hidden" name="WATERMARK_PLACE" value="0" />

            <input type="hidden" name="WATERMARK_IMAGE" value="" />

            <button class="button bg-main" type="submit">保存</button>

            <button class="button bg" type="reset">重置</button>

          </div>

        </div>

      </div>

    </div>

  </form>

<script type="text/javascript">

//表单选项

langopen({$config_array.LANG_OPEN});

function langopen(type){

	if(type){

		$('.lang').show();

	}else{

		$('.lang').hide();

	}

}

htmlcache({$config_array.HTML_CACHE_ON});

function htmlcache(type){

	if(type){

		$('.htmlcache').show();

	}else{

		$('.htmlcache').hide();

	}

}

mobileopen({$config_array.MOBILE_OPEN});

function mobileopen(type){

	if(type){

		$('.mobile').show();

	}else{

		$('.mobile').hide();

	}

}

//提交表单

saveform({success:function(msg){tip({msg:msg})},failure:function(msg){tip({msg:msg})}});

//页面执行

//模板列表

function tpl_list(id){

	var list = [ 

	<!--foreach:{$tpl_list $vo}-->

	{

		href: "javascript:;\" onclick=\"tpl_val('"+id+"','{$vo.name}');\"",

		text: "{$vo.text}"

	},

	<!--{/foreach}-->

	{

		text: "请选择模板，支持子目录"

	}];

	return list;

	

}

function themes_list(id){

	var list = [ 

	<!--foreach:{$themes_list $vo}-->

	{

		href: "javascript:;\" onclick=\"tpl_val('"+id+"','themes/{$vo.name}/');\"",

		text: "themes/{$vo.text}/"

	},

	<!--{/foreach}-->

	{

		text: "请选择使用模板"

	}];

	return list;

}

//模板赋值

function tpl_val(id,val){

	$('#'+id).val(val);

	$.powerFloat.hide();

	return false;

}

function tpl_power(id){

	$("#"+id).powerFloat({

		width: 302,

		eventType: "click",

		edgeAdjust:false,

		target:tpl_list(id),

		targetMode: "list"

	});

	

}

//页面执行

$(document).ready(function() {

	//模板选择

	$("#TPL_TEMPLATE_PATH").powerFloat({

		width: 302,

		eventType: "click",

		edgeAdjust:false,

		target:themes_list('TPL_TEMPLATE_PATH'),

		targetMode: "list"

	});

	tpl_power("TPL_INDEX");

	tpl_power("TPL_COMMON");

	tpl_power("TPL_SEARCH");

	tpl_power("TPL_TAGS");

  tpl_power("TPL_TAGS_INDEX");

});

</script>

</div>

